<?php
namespace app\shop\validate\company;
use think\Validate;
class Interview extends Validate
{
    protected $rule = [
        'id' => 'require',
        'department_id' => 'require',
        'station_id' => 'require',
        'name' => 'require',
        'mobile' => 'require',
        'sex' => 'require',
        'age' => 'require',
        'order_time' => 'require',
        'file' => 'require',
        'evaluate' => 'require',
        'interview_time' => 'require',
        'result' => 'require',
        'interview_id' => 'require'
    ];
    protected $message = [
        'id.require' => '参数错误',
        'department_id.require' => '请选择部门',
        'station_id.require' => '请选择岗位',
        'name.require' => '请输入姓名',
        'mobile.require' => '请输入手机号',
        'sex.require' => '请选择性别',
        'age.require' => '请输入年龄',
        'order_time.require' => '请选择面试时间',
        'file.require' => '请上传简历',
        'evaluate.require' => '请填写评价',
        'interview_time.require' => '请选择面试时间',
        'result.require' => '请选择面试结果',
        'interview_id.require' => '参数错误'
    ];
    protected $scene = [
        'save' => ['department_id', 'station_id', 'name', 'mobile', 'order_time', 'file'],
        'info' => ['id'],
        'saveLog' => ['id', 'interview_id', 'result', 'evaluate', 'interview_time']
    ];
}